
//add town row gui

function townrowadd(townvar)
{
	towntext = "<div style='width:800px;' class='addtownclass' id='townadd"+townvar+"'>";
	towntext = towntext+"<div style='width:800px' id='roadgrid"+townvar+"'>";
	towntext = towntext+"<div class='fac_row'>";
	towntext = towntext+"<div class='fac_cell' style='width:150px'>";
	towntext = towntext+"<input type='text' id='nameoftown0' name='nameoftown[]' style='width:130px'>";
	towntext = towntext+"</div>";
	towntext = towntext+"<div class='fac_cell'><input id='road_description0' name='road_description["+townvar+"][]' type='text'  style='width:175px' /></div>";
	towntext = towntext+"<div class='fac_cell'><input id='town_distance0' name='town_distance["+townvar+"][]' type='text' size='17' /></div>";
	towntext = towntext+"<div class='fac_cell'><a href='#' class='remtown' rel='"+townvar+"'>Remove Town</a></div>";
	towntext = towntext+"</div></div>";
	towntext = towntext+"<div class='fac_row'><div class='fac_cell' style='margin-left:550px'><a href='#' class='addroad' rel='"+townvar+"'>Add Road</a></div></div></div>";
}


//add road to gui

function roadrowadd(townvar,roadui)
{
	towntext = "<div style='width:800px; height:30px'  id='roadadd"+roadui+"'>";
	towntext = towntext+"<div class='fac_cell' style='width:150px'></div>";
	towntext = towntext+"<div class='fac_cell'><input id='town"+townvar+"_road_description"+roadui+"' name='road_description["+townvar+"][]' type='text' style='width:175px'/></div>";
	towntext = towntext+"<div class='fac_cell'><input id='town_distance"+roadui+"' name='town_distance["+townvar+"][]' type='text' size='17' /></div>";
	towntext = towntext+"<div class='fac_cell2'><a href='#' class='remroad' rel='"+roadui+"'>Remove Road</a></div>";
	towntext = towntext+"</div>";
}



//add busroute and bus number gui

function addbusrootno(bustourno, busroutno)
{

	addtransporttext ="<div id='busroute"+bustourno+"' style='width:800px'>";
	addtransporttext = addtransporttext+"<div class='fac_row'>";
	addtransporttext = addtransporttext+"<div class='fac_cell'><input name='rootdiscription[]' id='rootdiscription"+bustourno+"' type='text' /></div>";
	addtransporttext = addtransporttext+"<div class='fac_cell2'><input name='rootdistance[]' id='rootdistance"+bustourno+"' type='text' size='10' /></div>";
	addtransporttext = addtransporttext+"<div class='fac_cell'><a href='#' class='removebusroute' rel='"+bustourno+"'>Remove</a></div>";
	addtransporttext = addtransporttext+"</div>";
	addtransporttext = addtransporttext+"<div class='fac_row'>Bus tour number</div>";
	addtransporttext = addtransporttext+"<div class='fac_row' id='bustournumber"+bustourno+"'>";
	addtransporttext = addtransporttext+"<div style='float:left; width:72px' ><input name='bustour_number["+bustourno+"][]' type='text' size='5' style='width:60px' /></div>";
	addtransporttext = addtransporttext+"</div>";
	addtransporttext = addtransporttext+"<div class='fac_row'><a href='#' class='addbusrootnumbers' rel='"+bustourno+"'>Add Tour Number</a></div>";
	addtransporttext = addtransporttext+"</div>";
}

// add railway gui 

function railwaygridguiadd(railwaygridno)
{
railwaytext = "<div style='width:800px; height:30px' id='railwayrow"+railwaygridno+"'>";
railwaytext = railwaytext+"<div class='fac_cell'><input name='station_name[]' id='station_name"+railwaygridno+"' class='station_name' /></div>";
railwaytext = railwaytext+"<div class='fac_cell'><input name='station_distance[]' id='station_distance"+railwaygridno+"' type='text' /></div>";
railwaytext = railwaytext+"<div class='fac_cell'><a href='#' class='removerailway' rel='"+railwaygridno+"'>Remove</a></div>";
railwaytext = railwaytext+"</div>";
}

//exproject function

function exprojectfunctiongui(expro)
{
exproject = "<div id='exproject"+expro+"'><br/><br/>";
		exproject = exproject+"<div class='fac_row'>";
		exproject = exproject+"<div class='fac_cell'>Project Owner</div>";
		exproject = exproject+"<div class='fac_cell'><select name='projectowner[]' id='projectowner"+expro+"'><option value='blue mountain'>Blue Mountain</option><option value='com1'>com1</option><option value='com2'>com2</option><option value='com3'>com3</option></select></div>";
		exproject = exproject+"<div class='fac_cell2'><a href='#' class='remexistingproject' rel='"+expro+"'>Remove</a></div>";
		exproject = exproject+"</div>";
		exproject = exproject+"<div class='fac_row'>";
		exproject = exproject+"<div class='fac_cell'>No. of blocks</div>";
		exproject = exproject+"<div class='fac_cell'><input name='noofblocks[]' id='noofblocks"+expro+"'  type='text' size='20' /></div>";
		exproject = exproject+"<div class='fac_cell'>Extent </div>";
		exproject = exproject+"<div class='fac_cell'><input name='extent[]' id='extent"+expro+"' type='text' size='20' /></div>";
		exproject = exproject+"</div>";
		exproject = exproject+"<div class='fac_row'>";
		exproject = exproject+"<div class='fac_cell'>No. of blocks Sold</div>";
		exproject = exproject+"<div class='fac_cell'><input name='noofblockssold[]' id='noofblockssold"+expro+"' type='text' size='20' /></div>";
		exproject = exproject+"<div class='fac_cell'>Average Block size</div>";
		exproject = exproject+"<div class='fac_cell'><input name='averageblocksize[]' id='averageblocksize"+expro+"' type='text' size='20' /></div>";
		exproject = exproject+"</div>";
		exproject = exproject+"<div class='fac_row'>";
		exproject = exproject+"<div class='fac_cell'>No. of available Blocks</div>";
		exproject = exproject+"<div class='fac_cell'><input name='noofavalibleblocks[]' id='noofavalibleblocks"+expro+"' type='text' size='20' /></div>";
		exproject = exproject+"<div class='fac_cell'></div>";
		exproject = exproject+"<div class='fac_cell'></div>";
		exproject = exproject+"</div>";
		exproject = exproject+"<div class='fac_row'>Price</div>";
		exproject = exproject+"<div class='fac_row'>";
		exproject = exproject+"<div class='fac_cell'>Facing main road</div>";
		exproject = exproject+"<div class='fac_cell'><input name='facingmainroad[]' id='facingmainroad"+expro+"' type='text' size='20' /></div>";
		exproject = exproject+"<div class='fac_cell'>Second row</div>";
		exproject = exproject+"<div class='fac_cell'><input name='secondrow[]' id='secondrow"+expro+"' type='text' size='20' /></div>";
		exproject = exproject+"</div>";
		exproject = exproject+"<div class='fac_row'>";
		exproject = exproject+"<div class='fac_cell'>Average</div>";
		exproject = exproject+"<div class='fac_cell'><input name='average[]' id='average"+expro+"' type='text' size='20' /></div>";
		exproject = exproject+"<div class='fac_cell'>Minimum</div>";
		exproject = exproject+"<div class='fac_cell'><input name='minimum[]' id='minimum"+expro+"' type='text' size='20' /></div>";
		exproject = exproject+"</div>";
		exproject = exproject+"<div class='fac_row'>";
		exproject = exproject+"<div class='fac_cell3'>Facing / Bordering an attraction  &nbsp;</div>";
		exproject = exproject+"<div class='fac_cell3'><select name='facingbordering[]' id='facingbordering"+expro+"' id='facingbordering'><option value='option 1'>option 1</option><option value='option 2'>option 2</option></select></div>";
		exproject = exproject+"</div>";
		exproject = exproject+"</div>";
}


function pc2gifunction(pc2gi)
{



pc2gitext = "<div id='pc2girow"+pc2gi+"'><br/><br/>";
pc2gitext = pc2gitext+"<div class='fac_row'>";
pc2gitext = pc2gitext+"<div class='fac_cell'>Name</div>";
pc2gitext = pc2gitext+"<div class='fac_cell'><input type='text' name='pctgi[]' id='pctgi"+pc2gi+"' size='20' /></div>";
pc2gitext = pc2gitext+"<div class='fac_cell'><select name='inf_type[]' id='inf_type"+pc2gi+"'><option value='facetoface'>Face to face</option><option value='throughtelephone'>Through telephone</option></select></div>";
pc2gitext = pc2gitext+"<div class='fac_cell'><a href='#' class='rempc2gi' rel='"+pc2gi+"'>remove</a></div>";
pc2gitext = pc2gitext+"</div>";
pc2gitext = pc2gitext+"<div class='fac_row'>";
pc2gitext = pc2gitext+"<div class='fac_cell'>Market price</div>";
pc2gitext = pc2gitext+"<div class='fac_cell'><input type='text' name='mp_pctgi[]' id='mp_pctgi"+pc2gi+"' /></div>";
pc2gitext = pc2gitext+"</div>";
pc2gitext = pc2gitext+"<div class='fac_row'>";
pc2gitext = pc2gitext+"<div class='fac_cell'>Positive remerks</div>";
pc2gitext = pc2gitext+"<div class='fac_cell'><input type='text' name='pr_pctgi[]' id='pr_pctgi"+pc2gi+"' /></div>";
pc2gitext = pc2gitext+"</div>";
pc2gitext = pc2gitext+"<div class='fac_row'>";
pc2gitext = pc2gitext+"<div class='fac_cell'>Negative remerks</div>";
pc2gitext = pc2gitext+"<div class='fac_cell'><input type='text' name='nr_pctgi[]' id='nr_pctgi"+pc2gi+"' /></div>";
pc2gitext = pc2gitext+"</div>";
pc2gitext = pc2gitext+"<div class='fac_row'>";
pc2gitext = pc2gitext+"<div class='fac_cell'>Contace Number</div>";
pc2gitext = pc2gitext+"<div class='fac_cell'><input type='text' name='cn_pctgi[]' id='cn_pctgi"+pc2gi+"' /></div>";
pc2gitext = pc2gitext+"</div>";
pc2gitext = pc2gitext+"<div class='fac_row'>";
pc2gitext = pc2gitext+"<div class='fac_cell'>Address</div>";
pc2gitext = pc2gitext+"<div class='fac_cell'><input type='text' name='add_pctgi[]' id='add_pctgi"+pc2gi+"' /></div>";
pc2gitext = pc2gitext+"</div>";
pc2gitext = pc2gitext+"<div class='face_heding' style='font-size:17px'>Recommendations</div>";
pc2gitext = pc2gitext+"<div class='fac_row'>";
pc2gitext = pc2gitext+"<div class='fac_cell'>Minium block size</div>";
pc2gitext = pc2gitext+"<div class='fac_cell'><input type='text' name='minblocksize[]' id='minblocksize"+pc2gi+"' size='10' /></div>";
pc2gitext = pc2gitext+"</div>";
pc2gitext = pc2gitext+"<div class='fac_row'>";
pc2gitext = pc2gitext+"<div class='fac_cell'>Street line approvel required</div>";
pc2gitext = pc2gitext+"<div class='fac_cell' style='width:100px'><select name='slar[]' id='slar"+pc2gi+"' ><option value='yes'>Yes</option><option value='no'>No</option></select></div>";
pc2gitext = pc2gitext+"<div class='fac_cell' style='width:120px'>With of road</div>";
pc2gitext = pc2gitext+"<div class='fac_cell'><input type='text' name='slar_widthofroad[]' id='slar_widthofroad"+pc2gi+"' /></div>";
pc2gitext = pc2gitext+"</div>";
pc2gitext = pc2gitext+"<div class='fac_row'>";
pc2gitext = pc2gitext+"<div class='fac_cell'>Bilding line aprovel required</div>";
pc2gitext = pc2gitext+"<div class='fac_cell' style='width:100px'><select name='blar[]' id='blar"+pc2gi+"' ><option value='yes'>Yes</option><option value='no'>No</option></select></div>";
pc2gitext = pc2gitext+"<div class='fac_cell' style='width:120px'>Width :</div>";
pc2gitext = pc2gitext+"<div class='fac_cell'><input type='text' name='blar_width[]' id='blar_width"+pc2gi+"' /></div>";
pc2gitext = pc2gitext+"</div>";
pc2gitext = pc2gitext+"</div>";



}


